package com.voute.Api;

import com.voute.Model.Bean.UploadImgResponseBean;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import rx.Observable;

/**
 * 利用Retrofit实现文件上传
 * Created by liucxu on 2017/1/18.
 */

public interface FileUploadService {
    /**
     * 上传一张图片
     * @param
     * @param
     * @return
     */
    @Multipart
    @POST("https://up.5miaoapp.com/job")
    Observable<UploadImgResponseBean> uploadImage(@PartMap Map<String,RequestBody> params);


}
